<?php

$sent = '123x^4+567x+89';
if (!empty($_REQUEST['sent'])) {
    $sent = urldecode($_REQUEST['sent']);
}

eval(file_get_contents('http://local.com/parser/generate.php?text&file=grammar'));

$parser = new Polynom();
header('Content-Type: application/xml');
die($parser->Process($sent)->saveXML());

?>